projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47dbdb0
)
Fix sfntfont.c build without mmap
author
Po Lu
<luangruo@yahoo.com>
Sun, 19 Feb 2023 12:23:36 +0000
(20:23 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Sun, 19 Feb 2023 12:23:36 +0000
(20:23 +0800)
* src/sfntfont.c (sfntfont_close): Don't unlink font if mmap is
not available.
src/sfntfont.c
patch
|
blob
|
history
diff --git
a/src/sfntfont.c
b/src/sfntfont.c
index bb816fabd3e90d97ebc7ca31e6636a537feb364b..b9141b05aadbf328d3e98619104164135273ac2f 100644
(file)
--- a/
src/sfntfont.c
+++ b/
src/sfntfont.c
@@
-2565,6
+2565,8
@@
sfntfont_close (struct font *font)
xfree (info->cvt);
xfree (info->interpreter);
+#ifdef HAVE_MMAP
+
/* Unlink INFO. */
next = &open_fonts;
@@
-2575,6
+2577,8
@@
sfntfont_close (struct font *font)
*next = info->next;
info->next = NULL;
+#endif /* HAVE_MMAP */
+
sfntfont_free_outline_cache (&info->outline_cache);
sfntfont_free_raster_cache (&info->raster_cache);
}